Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding IconOverlay Support #445

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Adding IconOverlay Support #445

wants to merge 2 commits into from

Conversation

shawngmc
Copy link

What does this PR do?

Fixes #433 - the lack of the corrupted item overlay (eyeball) and Azerite item overlay (4 corner crystals).

Where should the reviewer start?

Have a corrupted gear piece and an azerite gear piece in bags.

How should this be manually tested?

  • Open bag
  • Verify corrupted gear pieces have eyeball in corner
  • Verify azerite gear pieces have crystals in corners
  • Verify other items display properly

Documents

Screenshots (if appropriate)

Before:
image
After:
image

Note: Check marks are from Can I Mog It and can be safely ignored.

@clmcgrath
Copy link

would this fix pawn icons as well ? i totally vote for this if it fixes this

Updating to latest to build 9.0.1 support
@Meivyn
Copy link
Contributor

Meivyn commented Sep 7, 2022

I would suggest using this instead since this would be future-proof, and also adds support for IconOverlay2:

function buttonProto:UpdateOverlay()
	local _, _, _, quality = GetContainerItemInfo(self.bag, self.slot)
	SetItemButtonOverlay(self, self.itemId or self.itemLink or 0, quality)
end

That would also require making sure it only loads on Retail, so putting the method call into a self.isRetail block.

@Meivyn
Copy link
Contributor

Meivyn commented Sep 8, 2022

@Cidan Would you mind me doing another PR for this? The author seems to be unavailable. This is understandable considering the long wait time we had with PRs due to the lack of maintainers.

@shawngmc
Copy link
Author

shawngmc commented Sep 8, 2022

Update: I completely misread the comments - just realized @Meivyn was offering to make a new PR with those changes. Let me know how I can help.

@Meivyn Sorry for the late reply - I didn't see from the email notification that you were a contributor and not just a commenter. I can try to help, but I'm also not sure how to test this now - I don't think Azerite or Corrupted gear still cover this.

Looking at ItemButtonTemplate.lua it looks like Conduit items get a special frame - when I get home, I can see if they do.

I'm also not a fluent Lua/WoW UI coder. :) I do more JS and Python these days.

If @Cidan can't, I can try to take a look at this tonight or tomorrow; I do have raid tonight and am starting a public push on fixing the broken Guild/Community member popup menu in the base Blizzard UI. :)

@Cidan
Copy link
Contributor

Cidan commented Sep 8, 2022

I'm fine with whomever wants to take a look at this, by all means! Now that DF PTR is out, I'm going to spend the next month focusing on finishing the new layout design + ensuring nothing breaks for DF + reskinning the default view to fit with DF.

@shawngmc
Copy link
Author

shawngmc commented Sep 9, 2022

I've added #701 as a new PR (my original fork is gone, so pulling the latest change in would be messy).

@Meivyn
Copy link
Contributor

Meivyn commented Sep 9, 2022

Looking at ItemButtonTemplate.lua it looks like Conduit items get a special frame - when I get home, I can see if they do.

I am not sure what IconOverlay2 is used for, it seems to have something to do with conduits "border", but they're also still using IconOverlay for it. I didn't look into it really.

ensuring nothing breaks for DF

Base game UI breaks easily and Ace3 might be broken as well from what I saw, so good luck!

@Maatouk84
Copy link

Would be nice if Pawn works again 💯

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Corrupted Icon Overlay missing
5 participants